import httpUtil from "@/utils/httpUtil";


const addXmlyLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 19,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

const addWxNewLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 15,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

const addLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 3,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

const addClbLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 7,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

const addNanguaShipinLianheHuiyuan = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 14,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

const addShengXinPlusYinglianLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 29,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

export default {
	addShengXinPlusYinglianLog,
	addXmlyLog,
	addLog,
	addClbLog,
	addNanguaShipinLianheHuiyuan,
	addWxNewLog,
}